import 'package:date_format/date_format.dart';

///  https://pub.dev/packages/date_format
class DateUtil {
  static String format(int timeSamp) {
    var dateTime = DateTime.fromMillisecondsSinceEpoch(timeSamp);
    return formatDate(
        dateTime, ["yyyy", "-", "mm", "-", "dd", " ", "hh", ":", "mm",":", "ss"]);
  }
}
